package com.maochang.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maochang.mapper.PsInspectiontaskDetailMapper;
import com.maochang.pojo.PsInspectiontaskDetail;
import com.maochang.service.PsInSpectiontaskDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("PsInSpectiontaskDetailImpl")
public class PsInSpectiontaskDetailImpl extends ServiceImpl<PsInspectiontaskDetailMapper, PsInspectiontaskDetail> implements PsInSpectiontaskDetailService {

    @Resource
    private  PsInspectiontaskDetailMapper psInspectiontaskDetailMapper;

    @Override
    public Page<PsInspectiontaskDetail> chaZiRenWu(int page,int size) {
        Page<PsInspectiontaskDetail> psliPage=new Page<>(page,size);
        QueryWrapper<PsInspectiontaskDetail> wrapper= Wrappers.query();
        wrapper.eq("isSolve","0").eq("isBugLevel",1).eq("isBug",1)
               .eq("taskStatus","34");
        Page<PsInspectiontaskDetail> psInspectiontaskDetailPage=  psInspectiontaskDetailMapper.selectPage(psliPage,wrapper);
        return psInspectiontaskDetailPage;
    }
    //查询缺陷任务
}
